WithPerms

annotation class WithPerms(val opLevel: Int = 3)

Applies permission restrictions to a config setting.

Defines the Operator Permission Level needed to make modifications to a config entry. By default, all entries need Op Level 2, hence this default starts at 3.

Order of precedence:

  1. NonSync

  2. ClientModifiable (Annotating config class itself)

  3. ClientModifiable (specific setting annotation)

  4. WithCustomPerms (specific setting annotation)

  5. WithPerms (specific setting annotation)

  6. WithCustomPerms (Annotating config class itself)

  7. WithPerms (Annotating config class itself)

  8. Config.defaultPermLevel

Author

fzzyhmstrs

Since

0.2.0

Parameters

opLevel

the Operator Level required for modification. 1 = moderator, 2 = game master, 3 = admin, 4 = owner

Properties

Link copied to clipboard
val opLevel: Int = 3